<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

	<h:form>
		<h:panelGrid styleClass="navigation">
			<c:if test="#{navigationBean.yourCvAreaSelected}">
				<h:commandLink action="#{cvAction.actionCreateNew}"
					value="#{label.createNew}" />
			</c:if>
			<c:if test="#{navigationBean.adminSelected}">
				<h:commandLink action="#{adminUploadAction.createUploadAction}"
					value="#{label.uploadUsers}" />
				<h:commandLink action="#{systemDefaultsAction.systemDefaultsAction}"
					value="#{label.settings}" />
				<h:commandLink action="#{sysDefaultsAction.init()}"
					value="System Defaults" />
				<h:commandLink action="#{userSearchAction.startSearch()}"
					value="#{label.searchUser}" />
				<h:commandLink action="#{userAction.createUserAction}"
					value="#{label.createUser}" />
			</c:if>
			<c:if test="#{navigationBean.helpSelected}">
				<h:commandLink action="#{helpAction.initHelp()}" value="#{label.help}" />
			</c:if>
			<c:if test="#{navigationBean.manageCvsSelected}">
				<h:commandLink action="#{customFieldsAction.init()}"
					value="#{label.manageCustomFields}" />
			</c:if>
			<c:if test="#{navigationBean.homeSelected}">
				<h:commandLink action="#{loginAction.initLogin}" value="#{label.login}"
					rendered="#{not loginAction.loggedIn}" />
				<h:commandLink action="#{loginAction.logout}" value="#{label.logout}"
					rendered="#{loginAction.loggedIn}" />
				<h:commandLink action="#{userAction.loadProfile}" value="#{label.profile}"
					rendered="#{loginAction.loggedIn}" />
				<h:commandLink action="#{searchCV.createCVSearch}" value="#{label.cvSearch}" />
			</c:if>
		</h:panelGrid>
	</h:form>
</ui:composition>
